package org.r.items.tally.consumer.test.demo;

import cn.hutool.core.lang.Console;
import org.junit.jupiter.api.Test;

public class Demo01 {

    @Test
    public void test01() {
        String username = "email:2856712933@qq.com";
        int separatorIndex = username.indexOf(":");
        String loginAway = username.substring(0, separatorIndex);
        String loginAccount = username.substring(separatorIndex + 1);
        Console.log("{} {}", loginAway, loginAccount);
    }

}
